﻿using System.Collections.Generic;
using YaAppoint.ExamAppies;

namespace YaAppoint.Appointments.AutoAppoint
{
    /// <summary>
    /// 时间过滤器
    /// </summary>
    public class TimeFilter
    {
        /// <summary>
        /// 基准申请项目
        /// </summary>
        public ExamApplicationDto BaseLineApplyItem { get; set; }

        // 对所有项目的时间段要求统计
        public List<TimeRequire>? AllTimeRequires { get; set; } = null;

        // 有时间要求的项目统计
        public List<TimeRequire>? TimeRequires { get; set; }

        public bool IsTimeRequired { get; set; } = false;

        // 项目间是否有时间段冲突
        public bool IsConflicting { get; set; } = false;

        // 有冲突的
        public List<Conflict> Conflicts { get; set; }

        // 涉及冲突的申请项目
        public List<TimeRequire> ConflictInvolvedRequires { get; set; }
    }
}
